Ext.define("MyApp.view.quartzCron.QuartzCronGrid",{
	extend:'MyApp.view.ux.BaseGridView',
	store:'QuartzCronStore',
	xtype: 'quartzCron-grid',
	columns:[
		//{text:'任务ID',dataIndex:'id', align:'center'},
		{text:'任务名称',dataIndex:'jobName', align:'left'},
		{text:'任务组名称',dataIndex:'groupName',align:'center'},
		{text:'任务描述',dataIndex:'description',align:'center'},
		//{text:'任务类',dataIndex:'clazzName', align:'center'},
		//{text:'任务执行方法',dataIndex:'cronMethod', align:'center'},
		{text:'任务周期',dataIndex:'cronExpression', align:'center'},
		{text:'创建时间',dataIndex:'createDate',align:'center',renderer: Ext.util.Format.dateRenderer('Y-m-d')},
		{text:'任务状态',dataIndex:'status', align:'center', renderer : Ext.myUtil.quartzStatusFormat}
		
	],
	 plugins: [{
            ptype: 'rowexpander',
            rowBodyTpl : new Ext.XTemplate(
                '<div style="width:30%;float:left;"><p><b>任务名称:</b> {jobName}</p> <p><b>任务组名称:</b> {groupName}</p> <p><b>任务描述:</b> {description}</p></div>',
                '<div style="width:30%;float:left;"><p><b>任务类:</b> {clazzName}</p> <p><b>任务执行方法:</b> {cronMethod}</p> <p><b>任务周期:</b> {cronExpression}</p></div>'
            )
    }]
});
